﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;
using mobliebo;

namespace mobileshopping
{
    public partial class WebForm3 : System.Web.UI.Page
    {
        company_info comp=new company_info();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                DataTable dt = comp.GetRecords(-99, "", "", "", "", 1800, false, " and ");

            }
        }

        
        protected void Button2_Click(object sender, EventArgs e)
        {
            comp.company_id = -99;
            comp.company_name = ddlCompany_name.SelectedValue.ToString();
            comp.brand_name = ddlBrand_name.SelectedValue.ToString();
            comp.services = txtServices.Text;
            comp.category = ddlCategory.SelectedValue.ToString();
            comp.launch_year = Convert.ToInt64(ddlLaunched_year.SelectedValue.ToString());
            comp.SaveRecords();
        }
    }
}
